﻿@import "../_theme";

/*#region 分页*/
.v-page-navi-bar {
    cursor: pointer;
    float: right;

    & > li {
        display: inline-block;
        transition: all linear .3s;
        padding: 3px 8px;
        text-align: center;
        border: 1px solid gray;
        background-color: $ClrControllerBk;
        margin: 0 1px;

        &:hover {
            border: 1px solid $ClrTheme;
            background-color: $ClrHover;
        }

        &.slcted {
            background-color: $ClrTheme;
            color: $ClrThemeHotTxt;
        }

        &.v-page-navi-info {
            cursor: default;
            border: none;
            background: none;

            &:hover {
                border: none !important;
                background-color: none !important;
            }
        }
    }
}
/*#endregion*/

/*#region 树型结构*/
.v-tree {
    width: 100%;
    cursor: pointer;

    &.vt_folded {
        animation: vtreefold 1s ease forwards;
    }

    & > li {
        width: 100%;
        position: relative;
    }
}

.v-tree-item {
    padding: .2rem 0;
    display: inline-block;
    width: 100%;

    &:hover {
        background-color: $ClrHover;
    }

    &.slcted {
        background-color: $ClrSlcted;
    }
}

.v-tree-expander {
    position: absolute;
    font-size: 2rem;

    /*&.icon-tree-line {
        top: .4rem;
    }

    &.icon-tree-line-node {
        top: 0;
    }*/

    &.icon-minus-outline {
        top: .4rem !important;

        &:hover {
            color: $ClrFocus !important;
        }
    }

    &.icon-add-outline {
        top: .4rem !important;

        &:hover {
            color: $ClrFocus !important;
        }
    }
}

.v-tree-line {
    position: absolute;
    height: 100%;
    width: 2rem;
    background-image: url('/UI/imgs/components/v-tree-line.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;

    &.terminal {
        background-image: url('/UI/imgs/components/v-tree-line-end.png');
    }
}

@keyframes vtreefold{
    0%{
        transform:scaleY(1);
        overflow:hidden;
    }

    100% {
        transform: scaleY(0);
        overflow: hidden;
    }
}

@-webkit-keyframes vtreefold{
    0% {
        transform: scaleY(1);
        overflow: hidden;
    }

    100% {
        transform: scaleY(0);
        overflow: hidden;
    }
}

@-moz-keyframes vtreefold{
    0% {
        transform: scaleY(1);
        overflow: hidden;
    }

    100% {
        transform: scaleY(0);
        overflow: hidden;
    }
}

@-o-keyframes vtreefold{
    0% {
        transform: scaleY(1);
        overflow: hidden;
    }

    100% {
        transform: scaleY(0);
        overflow: hidden;
    }
}
/*#endregion*/


/*#region 倒计时牌*/
.v-countdown {
    white-space: nowrap;
    display: inline-block;

    & > .vc-group {
        display: inline-block;
        overflow-x: hidden;
        padding: 5px 0 5px 5px;

        &.urgent {
            & > ul {
                color: $ClrImportant;
            }
        }

        & > span {
            font-size: 1.6rem;
        }

        & > ul {
            position: relative;
            height: 100%;
            border-radius: 5px;
            overflow: hidden;
            float: left;
            margin-right: 2px;
            box-shadow: 1px 2px 5px 0 #808080;

            & > .vc-fake {
                position: relative;
                height: 100%;
                opacity: 0;
                visibility: hidden;
            }

            & > li {
                position: absolute;
                top: 0;
                left: 0;
                height: 100%;
                width: 100%;
                padding: 0 4px 0 0;
                text-indent: 4px;
                z-index: -1;
                font-family: "Helvetica Neue", Helvetica, sans-serif;

                &.vc-start {
                    z-index: 1;
                }

                &.vc-active {
                    z-index: 2;

                    & > .down {
                        animation: vc-turn-up .5s .5s linear forwards;
                    }
                }

                &.vc-pre {
                    z-index: 3;

                    & > .up {
                        animation: vc-turn-down .5s linear forwards;
                    }

                    & > .down {
                        &:after {
                            content: '';
                            position: absolute;
                            width: 100%;
                            height: 1px;
                            left: 0;
                            top: -1px;
                            box-shadow: 0 0 15px 0 black;
                            animation: vc-turn-show .5s linear forwards;
                        }

                        animation: vc-turn-hide .5s .5s ease forwards;
                    }
                }

                & > .up {
                    position: absolute;
                    top: 0;
                    left: 0;
                    height: 50%;
                    width: 100%;
                    transform-origin: 50% bottom;
                    overflow: hidden;
                    background-color: white;

                    &:after {
                        content: '';
                        height: 1px;
                        width: 100%;
                        position: absolute;
                        left: 0;
                        bottom: 0;
                        background-color: #dddddd;
                    }

                    & > div {
                        position: absolute;
                        top: 0;
                        height: 200%;
                    }
                }

                & > .down {
                    position: absolute;
                    bottom: 0;
                    left: 0;
                    height: 50%;
                    width: 100%;
                    transform-origin: 50% 0;
                    overflow: hidden;
                    background-color: white;

                    & > div {
                        position: absolute;
                        bottom: 0;
                        height: 200%;
                    }
                }
            }
        }
    }
}

@-webkit-keyframes vc-turn-up {
    0% {
        -webkit-transform: rotateX(90deg);
    }

    100% {
        -webkit-transform: rotateX(0deg);
    }
}

@-moz-keyframes vc-turn-up {
    0% {
        -moz-transform: rotateX(90deg);
    }

    100% {
        -moz-transform: rotateX(0deg);
    }
}

@-o-keyframes vc-turn-up {
    0% {
        -o-transform: rotateX(90deg);
    }

    100% {
        -o-transform: rotateX(0deg);
    }
}

@keyframes vc-turn-up {
    0% {
        transform: rotateX(90deg);
    }

    100% {
        transform: rotateX(0deg);
    }
}

@-webkit-keyframes vc-turn-down {
    0% {
        -webkit-transform: rotateX(0deg);
    }

    100% {
        -webkit-transform: rotateX(-90deg);
    }
}

@-moz-keyframes vc-turn-down {
    0% {
        -moz-transform: rotateX(0deg);
    }

    100% {
        -moz-transform: rotateX(-90deg);
    }
}

@-o-keyframes vc-turn-down {
    0% {
        -o-transform: rotateX(0deg);
    }

    100% {
        -o-transform: rotateX(-90deg);
    }
}

@keyframes vc-turn-down {
    0% {
        transform: rotateX(0deg);
    }

    100% {
        transform: rotateX(-90deg);
    }
}


@-webkit-keyframes vc-turn-hide {
    0% {
        opacity: 100;
    }

    100% {
        opacity: 0;
    }
}

@-moz-keyframes vc-turn-hide {
    0% {
        opacity: 100;
    }

    100% {
        opacity: 0;
    }
}

@-o-keyframes vc-turn-hide {
    0% {
        opacity: 100;
    }

    100% {
        opacity: 0;
    }
}

@keyframes vc-turn-hide {
    0% {
        opacity:100;
    }

    100% {
        opacity:0;
    }
}


@-webkit-keyframes vc-turn-show {
    0% {
        opacity: 0;
    }


    100% {
        opacity: 100;
    }
}

@-moz-keyframes vc-turn-show {
    0% {
        opacity: 0;
    }


    100% {
        opacity: 100;
    }
}

@-o-keyframes vc-turn-show {
    0% {
        opacity: 0;
    }


    100% {
        opacity: 100;
    }
}

@keyframes vc-turn-show {
    0% {
        opacity: 0;
    }


    100% {
        opacity: 100;
    }
}
/*#endregion*/


/*#region 纵向时间轴*/
.v-time-line {
    width: 100%;
    max-width: 80rem;
    margin: 2rem auto;
    position: relative;

    &::before {
        content: ' ';
        position: absolute;
        border: 1px solid $ClrTheme;
        box-shadow: 0 0 3px 0 gray;
        height: 100%;
        left: 5rem;
        top: 1.5rem;
    }

    & > li {
        margin-bottom: 1rem;
        position: relative;
        min-height: 10rem;

        &:hover {
            & .vtl-node {
                transform: scale(1.5);
                background-color: $ClrFocus;
                transition: all linear .5s;
            }
        }
        /*&.by-system {
            background-color: $ClrDisableBk;
            border-radius: 10px;
        }*/
    }
}

@media only screen and (max-width:$old) {
    .v-time-line{
        width:80%;
    }
}

.vtl-head {
    width: 6rem;
    height: 10rem;
    float: left;
    margin-left:2rem;
    text-align: center;

    & > i {
        font-size: 4rem;
        color: $ClrTheme;
        position: absolute;
        left: -2rem;
    }

    & > .vtl-node {
        width: 15px;
        height: 15px;
        border-radius: 7.5px;
        display: inline-block;
        background-color: $ClrDisableBk;
        box-shadow: 0 0 5px 0;
        margin-top: 1rem;
    }

    & > .vtl-time {
        position: absolute;
        right: 4rem;
        top: 4rem;
        text-align: right;
        width: 10rem;
        padding-right: 10px;
    }
}

.vtl-body {
    padding: .5rem 0;

    & > .vtl-ttl {
        font-size: 1.4rem;
        font-weight: bold;
        border-radius: 1rem;
        min-width: 7rem;
        padding: 2px 1rem;
        line-height: 1.8rem;
        background-color: $ClrFocus;
        color: $ClrFocusTxt;
        display: inline-block;
        text-align: center;
    }

    & > .vtl-con {
        color: lighten($ClrThemeTxt,15);
    }

    & > .vtl-opr {
        color: lighten($ClrThemeTxt,15);
    }
}
/*#endregion*/


/*#region 星级评分*/
.v-rating {
    width: 100%;
    overflow: hidden;

    & tr {
        background-color: transparent !important;

        &:hover {
            background-color: transparent !important;
        }
    }

    & td {
        border: none !important;
        background-color: transparent !important;
    }
}
.vr-title {
    width: 8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align:center;
}
.vr-rating {
    text-align: left;

    & > li {
        display: inline-block;
        font-size: 5rem;
        padding: 1rem;

        &.rating{
            color:$ClrFocus;
        }
        &.bad{
            color:$ClrErr;
        }
    }
}
.vr-score{
    width:15rem;
    text-align:left;
}
.vr-tip {
    background-color: $ClrMsg;
    box-shadow: 0 0 2px 0 $ClrTheme;
    width: auto;
    min-width:20rem;
    padding:10px;
    &>li{
        margin-bottom:5px;
    }
    & .tag {
        border:1px solid gray;
        border-radius:5px;
        margin:0 5px;
    }
}

.wx-v-rating {
    width: 100%;
    overflow: hidden;

    & tr {
        background-color: transparent !important;
        &:hover {
            background-color: transparent !important;
        }
    }

    & td {
        border: none !important;
        background-color: transparent !important;
    }
}

.wx-vr-rating {
    text-align: left;

    & > li {
        display: inline-block;
        font-size: 4rem;
        padding: 5px;

        &.rating {
            color: $ClrFocus;
        }

        &.bad {
            color: $ClrErr;
        }
    }
}
.wx-vr-score {
    text-align: left;
    padding:0 1rem;
}
.wx-vr-tip {
    text-align: left;
    padding: 0 1rem;
    display: inline-block;
    width: 100%;
    word-wrap: break-word;
    white-space: normal;
}

/*#endregion*/

/*#region 自动完成文本框*/
.vtc-options {
    background-color: white;
    border: 1px solid;
    box-shadow: $FloatShadow;
    line-height: 2rem;
    padding: 5px;
    height: 30rem !important;
    overflow-y:auto;
    overflow-x:hidden;

    & > li {
        font-size: 1.6rem;
        padding: 5px;
        cursor: pointer;
        white-space:nowrap;
        text-overflow:ellipsis;
        &:hover {
            background-color: $ClrHover;
        }
    }
}
/*#endregion*/